package com.bjtu.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serial;

@TableName("video_like")
@ApiModel("视频点赞")
@Data
public class VideoLike {
    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("视频id")
    @TableField("video_id")
    private Integer videoId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    @NotNull
    private Integer userId;
}
